package com.shupian.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.shupian.domain.entity.UserRole;
import com.shupian.service.UserRoleService;
import com.shupian.mapper.UserRoleMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 19165
* @description 针对表【sys_user_role(用户和角色关联表)】的数据库操作Service实现
* @createDate 2022-09-15 14:33:41
*/
@Service
public class UserRoleServiceImpl extends ServiceImpl<UserRoleMapper, UserRole>
    implements UserRoleService{

    @Override
    public List<Long> getRoleIdsByUserId(Long id) {
        return getBaseMapper().getRoleIdsByUserId(id);
    }
}




